package com.itstudio.portal.enums;

public enum HttpCodeEnum {

    NEED_LOGIN(401, "需要登录后操作"),

    NO_OPERATOR_AUTH(403, "无权限操作"),

    USER_NOT_EXIST(501, "用户名不存在"),

    PHONE_NOT_NULL(502, "手机号不能为空"),

    CODE_NOT_NULL(503, "验证码不能为空"),

    CODE_ERROR(504, "验证码错误"),

    MESSAGE_SEND_FAILURE(505, "消息发送失败"),

    CODE_SEND_FREQUENT(505, "请不要频繁发送验证码"),

    PHONE_OR_CODE_ERROR(506, "手机号或验证码错误"),

    BODY_NAME_NOT_NULL(507, "主体不能为空"),

    PASSWORD_NOT_NULL(508, "密码不能为空"),

    PHONE_OR_PASSWORD_ERROR(509, "手机号或密码错误"),

    UNIFY_CREDIT_ERROR(510, "统一信用代码错误"),

    PHONE_EXIST(511, "手机号已存在"),

    PHONE_NOT_EXIST(512, "手机未注册"),

    LOGIN_ERROR(513, "登录失败"),

    PHONE_ERROR(514, "手机号格式错误"),

    USER_LOCKED(515,"用户已被禁用，请联系管理员"),
    FILE_TYPE_ERROR(516, "文件类型错误，请上传jpg、png、.pdf.jpeg、.gif、.bmp、.tiff文件"),

    AUTH_INFO_IS_EXIST(520,"认证信息已存在，若重复提交请删除之前的认证信息或进行修改"),

    AUTH_INFO_NOT_EXIST(521,"认证信息不存在"),

    AUTH_INFO_NOT_PASS(522,"认证信息待审核"),

    NEWS_TITLE_NOT_NULL(523, "新闻标题不能为空"),
    NEWS_CONTENT_NOT_NULL(524, "新闻内容不能为空"),
    NEWS_SUMMARY_NOT_NULL(525, "新闻摘要不能为空"),
    USER_ID_NOT_NULL(526, "用户id不能为空"),

    NEWS_ID_NOT_NULL(527, "文章id不能为空"),
    NEWS_UPDATE_FAILURE(528, "文章更新失败"),


    BUSINESS_LICENSE_NOT_NULL(531, "营业执照不能为空"),

    BUSINESS_SCOPE_NOT_NULL(532, "营业范围不能为空"),

    BUSINESS_ADDRESS_NOT_NULL(533, "企业地址不能为空"),

    BUSINESS_PERIOD_START_NOT_NULL(534, "营业期限开始时间不能为空"),

    CORPORATE_NAME_NOT_NULL(536, "法人姓名不能为空"),

    CORPORATE_ID_NUM_NOT_NULL(537, "法人身份证号不能为空"),

    CORPORATE_ID_DATE_NOT_NULL(538, "法人身份证有效期不能为空"),

    MANAGER_NAME_NOT_NULL(540, "账号管理人姓名不能为空"),

    MANAGER_ID_NUM_NOT_NULL(541, "账号管理人身份证号不能为空"),

    MANAGER_ID_DATE_NOT_NULL(542, "账号管理人身份证有效期不能为空"),

    MANAGER_ID_SCAN_NOT_NULL(544, "账号管理人身份证扫描件不能为空"),

    MANAGER_EMAIL_NOT_NULL(546, "账号管理人邮箱不能为空"),

    MANAGER_PHONE_NOT_NULL(547, "账号管理人手机号不能为空"),

    MANAGER_LETTER_NOT_NULL(548, "账号管理人授权书不能为空"),

    CAPITAL_NOT_NULL(549, "注册资本不能为空"),

    INDUSTRY_NOT_NULL(550, "所属行业不能为空"),

    FUNDING_ROUND_NOT_NULL(551, "股权融资情况不能为空"),

    MAIN_DESCRIPTION_NOT_NULL(553,"主营业务描述不能为空"),

    UNKNOWN_ERROR(552, "未知错误"),

    ROLE_ID_NOT_EXIST(550,"角色id不能为空"),

    RESULT_IS_NULL(550, "返回数据为空"),

    RESULT_NO_EXPECT(550, "意料外的返回"),

    ID_NOT_EXIST(550,"id不存在"),

    NO_FIND_INFO(550,"查询信息为空"),

    FILE_SIZE_EXCEED_LIMIT(556, "文件大小超出限制"),
    INVALID_FILE_TYPE(557, "不允许的文件类型"),
    ILLEGAL_FILENAME(558, "非法文件名"),
    FILE_UPLOAD_FAILURE(559, "文件上传失败"),
    FILE_MIME_TYPE_MISMATCH(560, "实际文件类型与声明的类型不符"),
    VIRUS_DETECTED(561, "文件中检测到病毒"),
    TOO_MANY_REQUESTS(562, "请求过于频繁"),
    INTERNAL_SERVER_ERROR(563, "内部服务器错误");



    int code;

    String msg;

    HttpCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
